package com.jdrx.ocp.helper;

import com.jdrx.platform.common.support.gateway.GwConstants;
import com.jdrx.platform.commons.rest.beans.vo.ResposeVO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;

import java.util.Map;

/**
 * @ClassName:RomoteApiCenterHelper
 * @Description:远程调用API-CENTER API
 * @author: yangfang
 * @date: 2017/7/3 17:25
 */
public interface RomoteApiCenterHelper {
    /**
     * 查询服务列表
     * @param token
     * @return
     */
    @POST("apicenter/api/0/apicenter/apiService/queryService")
    Call<ResposeVO> queryService(@Header(GwConstants.REQ_AUTH_HEAD_FEILD) String token, @Body Map map);
    /**
     * 查询API接口列表
     * @param token
     * @return
     */
    @POST("apicenter/api/0/apicenter/apiService/queryApi")
    Call<ResposeVO> queryApi(@Header(GwConstants.REQ_AUTH_HEAD_FEILD) String token, @Body Map map);
    /**
     * API接口统计
     * @param token
     * @return
     */
    @POST("apicenter/api/0/apicenter/apiService/getStatisticNum")
    Call<ResposeVO> getStatisticNum(@Header(GwConstants.REQ_AUTH_HEAD_FEILD) String token,@Body Map map);
}
